4.8
MEDIUM CVSS 4.0
CVE-2025-6140
Spdlog Local Resource Consumption Vulnerability
Description

A vulnerability, which was classified as problematic, was found in spdlog up to 1.15.1. This affects the function scoped_padder in the library include/spdlog/pattern_formatter-inl.h. The manipulation leads to resource consumption. It is possible to launch the attack on the local host. The exploit has been disclosed to the public and may be used. Upgrading to version 1.15.2 is able to address this issue. The identifier of the patch is 10320184df1eb4638e253a34b1eb44ce78954094. It is recommended to upgrade the affected component.

INFO

Published Date :

June 16, 2025, 10:16 p.m.

Last Modified :

July 2, 2025, 6:58 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2025-6140 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gabime spdlog
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 LOW [email protected]
CVSS 3.1 LOW [email protected]
CVSS 4.0 MEDIUM [email protected]
Solution
Address resource consumption by upgrading the spdlog library to the latest version.
  • Upgrade spdlog to version 1.15.2 or later.
  • Apply the provided patch if upgrading is not feasible.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-6140.

URL Resource
https://github.com/gabime/spdlog/commit/10320184df1eb4638e253a34b1eb44ce78954094 Patch
https://github.com/gabime/spdlog/issues/3360 Exploit Issue Tracking
https://github.com/gabime/spdlog/issues/3360#issuecomment-2729579422 Exploit Issue Tracking
https://github.com/gabime/spdlog/releases/tag/v1.15.2 Release Notes
https://vuldb.com/?ctiid.312609 Permissions Required VDB Entry
https://vuldb.com/?id.312609 Third Party Advisory VDB Entry
https://vuldb.com/?submit.592999 Third Party Advisory VDB Entry
https://github.com/gabime/spdlog/issues/3360 Exploit Issue Tracking
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-6140 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-6140 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-6140 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jul. 02, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:gabime:spdlog:*:*:*:*:*:*:*:* versions up to (excluding) 1.15.2
    Added Reference Type VulDB: https://github.com/gabime/spdlog/commit/10320184df1eb4638e253a34b1eb44ce78954094 Types: Patch
    Added Reference Type CISA-ADP: https://github.com/gabime/spdlog/issues/3360 Types: Exploit, Issue Tracking
    Added Reference Type VulDB: https://github.com/gabime/spdlog/issues/3360 Types: Exploit, Issue Tracking
    Added Reference Type VulDB: https://github.com/gabime/spdlog/issues/3360#issuecomment-2729579422 Types: Exploit, Issue Tracking
    Added Reference Type VulDB: https://github.com/gabime/spdlog/releases/tag/v1.15.2 Types: Release Notes
    Added Reference Type VulDB: https://vuldb.com/?ctiid.312609 Types: Permissions Required, VDB Entry
    Added Reference Type VulDB: https://vuldb.com/?id.312609 Types: Third Party Advisory, VDB Entry
    Added Reference Type VulDB: https://vuldb.com/?submit.592999 Types: Third Party Advisory, VDB Entry
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2025

    Action Type Old Value New Value
    Added Reference https://github.com/gabime/spdlog/issues/3360
  • New CVE Received by [email protected]

    Jun. 16, 2025

    Action Type Old Value New Value
    Added Description A vulnerability, which was classified as problematic, was found in spdlog up to 1.15.1. This affects the function scoped_padder in the library include/spdlog/pattern_formatter-inl.h. The manipulation leads to resource consumption. It is possible to launch the attack on the local host. The exploit has been disclosed to the public and may be used. Upgrading to version 1.15.2 is able to address this issue. The identifier of the patch is 10320184df1eb4638e253a34b1eb44ce78954094. It is recommended to upgrade the affected component.
    Added CVSS V4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
    Added CVSS V2 (AV:L/AC:L/Au:S/C:N/I:N/A:P)
    Added CWE CWE-404
    Added CWE CWE-400
    Added Reference https://github.com/gabime/spdlog/commit/10320184df1eb4638e253a34b1eb44ce78954094
    Added Reference https://github.com/gabime/spdlog/issues/3360
    Added Reference https://github.com/gabime/spdlog/issues/3360#issuecomment-2729579422
    Added Reference https://github.com/gabime/spdlog/releases/tag/v1.15.2
    Added Reference https://vuldb.com/?ctiid.312609
    Added Reference https://vuldb.com/?id.312609
    Added Reference https://vuldb.com/?submit.592999
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 4.8
Attack Vector
Attack Complexity
Attack Requirements
Privileges Required
User Interaction
VS Confidentiality
VS Integrity
VS Availability
SS Confidentiality
SS Integrity
SS Availability
Base CVSS Score: 3.3
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 1.7
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact